<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	public function _initRequest(){
		$this->_setDefaultAdapter();
	}

	protected function _setDefaultAdapter(){
		$dbAdapter = new Zend_Db_Adapter_Pdo_Mysql(array(
                  'host'     => 'localhost',
                  'username' => 'rss',
                  'password' => 'rss',
                  'dbname'   => 'rss_reader'
                  ));
                //$dbAdapter = Zend_Db_Table::getDefaultAdapter();
                //Zend_Registry::set('dbAdapter',$dbAdapter);
        Zend_Db_Table_Abstract::setDefaultAdapter($dbAdapter);
        $dbAdapter->setFetchMode(Zend_Db::FETCH_OBJ);
        
	}
}

